package com.hontek.demo.dao;

import java.util.ArrayList;
import java.util.List;

import org.hibernate.Query;
import org.hibernate.Session;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.hontek.comm.dao.BaseDao;
import com.hontek.demo.vo.SysUser;

public class UserDao extends BaseDao<SysUser>{
	public void add(SysUser user){
		this.save(user);
		System.out.println("成功");
	}
	public List findUserList() {
		List list = this.find("from SysUser");
		for(Object obj:list){
			SysUser user = (SysUser)obj;
			System.out.println(user.getUserName());
		}
		System.out.println("quaitie===="+list.size());
		return list;
	}
}
